<script type="text/javascript">

	function validateForm(){
		var form = document.forms[0]; 
		if (form.idRole.value != "")
			form.submit();
		else
			if (form.idRole.value == "")
				alert('Debe seleccionar un Rol');
	} 

	function cancelar() {
		window.location.href='<%=request.getContextPath() %>/profileList.do';
	} 
</script>

<tr>
	<td>Nombre:</td>
	<td><html:text property="name" /></td>
</tr>

<tr>	
	<td>Rol:</td>
	<td>
		<html:select property="idRole">
					<option value="">Seleccione...</option>
					<html:optionsCollection name="profileEditForm" property="roles" value="id" label="name"/> 
		</html:select>

	</td>
</tr>





				